package cn.edu.wynu.oop.shape;

public class Square extends Shape{

    // 边长
    int length;

    @Override
    public double returnSize() {
        return length * length;
    }

    public Square(String name, int length) {
        super(name);
        this.length = length;
    }
}
